const express = require('express');
const router = express.Router()
const pool = require('../utils/pool.js')

router.post('/technician',(req,res,next)=>{
  var obj = req.body
  pool.query('insert into technician set ?',[obj],(err,r)=>{
    if(err){
      return next()
    }
    console.log(r);
    res.send({code:200,msg:'添加成功'})
  })
})
module.exports = router